
package com.bei_en.teacher.admin.persistence.dao.questions;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.bei_en.teacher.admin.model.questions.bean.QuestionsType;
import com.bei_en.teacher.admin.model.questions.bean.QuestionsType2;
import com.bei_en.teacher.admin.model.questions.condition.QuestionsTypeCondition;
import com.bei_en.teacher.admin.persistence.BaseDao;

/**
 * 
 * @author Guocg
 * @date 2016-8-18 9:18:36
 */
@Repository
public interface QuestionsTypeDao extends BaseDao<QuestionsType, Integer> {

    Integer findNumberByCondition(QuestionsTypeCondition vo);
    Integer findNumberByCondition2(QuestionsTypeCondition vo);
    List<QuestionsType> findPageBreakByCondition(QuestionsTypeCondition vo, RowBounds rb);
    
    List<QuestionsType2> findPageBreakByCondition2(QuestionsTypeCondition vo, RowBounds rb);
    /**
     * 返回上次插入的id，用于merge
     * @return
     */
    Integer findLastInsertedId();
}
